package com.gopay.common.domain.cbrmb.internationalcard.masapay;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * @ClassName: UploadExpressListResDTO
 * @Description: 乾汇快递单上传接口响应类
 * @author lailingyu
 * @date 2018年2月8日 下午4:15:31 www.gopay.com.cn Inc.All rights reserved.
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "uploadExpressListResDTO", propOrder = {
    "charset",
    "errCode",
    "errMsg",
    "expressCount",
    "language",
    "merchantId",
    "signMsg",
    "signType",
    "unsavelist",
    "version"
})
public class MasaPayUploadExpressListResDTO implements Serializable {
    /**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -2927610229046700591L;

	protected String charset;
    protected String errCode;
    protected String errMsg;
    protected String expressCount;
    protected String language;
    protected String merchantId;
    protected String signMsg;
    protected String signType;
    @XmlElement(nillable = true)
    protected List<MasaPayUploadExpressDTO> unsavelist;
    protected String version;

    public String getCharset() {
        return charset;
    }

    public void setCharset(String value) {
        this.charset = value;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String value) {
        this.errCode = value;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String value) {
        this.errMsg = value;
    }

    public String getExpressCount() {
        return expressCount;
    }

    public void setExpressCount(String value) {
        this.expressCount = value;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String value) {
        this.language = value;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String value) {
        this.merchantId = value;
    }

    public String getSignMsg() {
        return signMsg;
    }

    public void setSignMsg(String value) {
        this.signMsg = value;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String value) {
        this.signType = value;
    }

    public List<MasaPayUploadExpressDTO> getUnsavelist() {
        if (unsavelist == null) {
            unsavelist = new ArrayList<MasaPayUploadExpressDTO>();
        }
        return this.unsavelist;
    }

    public void setUnsavelist(List<MasaPayUploadExpressDTO> unsavelist) {
    	this.unsavelist = unsavelist;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String value) {
        this.version = value;
    }

	@Override
	public String toString() {
		return "MasaPayUploadExpressListResDTO [charset=" + charset + ", errCode=" + errCode + ", errMsg=" + errMsg
				+ ", expressCount=" + expressCount + ", language=" + language + ", merchantId=" + merchantId
				+ ", signMsg=" + signMsg + ", signType=" + signType + ", unsavelist=" + unsavelist + ", version="
				+ version + "]";
	}

	public String signatureData(String key) {
		return "version=" + version + "&merchantId=" + merchantId + "&charset=" + charset + "&language=" + language
				+ "&signType=" + signType + "&expressCount=" + expressCount + "&key=" + key;
	}
}